package com.qf.service.impl;

import com.qf.dao.txDao;
import com.qf.service.txService;

public class txServiceImpl implements txService {
    txDao txDao;

    public void setTxDao(com.qf.dao.txDao txDao) {
        this.txDao = txDao;
    }

    @Override
    public void TransMoney(String fromName, String toName, double money) {
        txDao.takeMoney(fromName,money);
//        int i=10/0;
        txDao.saveMoney(toName,money);
    }
}
